
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-xun"></use>
                    </svg>
                    <div class="name">巽</div>
                    <div class="fontclass">#E-icon-xun</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-zhen"></use>
                    </svg>
                    <div class="name">震</div>
                    <div class="fontclass">#E-icon-zhen</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-qian"></use>
                    </svg>
                    <div class="name">乾</div>
                    <div class="fontclass">#E-icon-qian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-gen"></use>
                    </svg>
                    <div class="name">艮</div>
                    <div class="fontclass">#E-icon-gen</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-dui"></use>
                    </svg>
                    <div class="name">兑</div>
                    <div class="fontclass">#E-icon-dui</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-kan"></use>
                    </svg>
                    <div class="name">坎</div>
                    <div class="fontclass">#E-icon-kan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-kun"></use>
                    </svg>
                    <div class="name">坤</div>
                    <div class="fontclass">#E-icon-kun</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-li"></use>
                    </svg>
                    <div class="name">离</div>
                    <div class="fontclass">#E-icon-li</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-bao"></use>
                    </svg>
                    <div class="name">剥</div>
                    <div class="fontclass">#E-icon-bao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-bi"></use>
                    </svg>
                    <div class="name">贲</div>
                    <div class="fontclass">#E-icon-bi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-bi1"></use>
                    </svg>
                    <div class="name">比</div>
                    <div class="fontclass">#E-icon-bi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-cui"></use>
                    </svg>
                    <div class="name">萃</div>
                    <div class="fontclass">#E-icon-cui</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-daxu"></use>
                    </svg>
                    <div class="name">大畜</div>
                    <div class="fontclass">#E-icon-daxu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-daguo"></use>
                    </svg>
                    <div class="name">大过</div>
                    <div class="fontclass">#E-icon-daguo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-dazhuang"></use>
                    </svg>
                    <div class="name">大壮</div>
                    <div class="fontclass">#E-icon-dazhuang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-dun"></use>
                    </svg>
                    <div class="name">遁</div>
                    <div class="fontclass">#E-icon-dun</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-fu"></use>
                    </svg>
                    <div class="name">复</div>
                    <div class="fontclass">#E-icon-fu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-dayou"></use>
                    </svg>
                    <div class="name">大有</div>
                    <div class="fontclass">#E-icon-dayou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-feng"></use>
                    </svg>
                    <div class="name">丰</div>
                    <div class="fontclass">#E-icon-feng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-ding"></use>
                    </svg>
                    <div class="name">鼎</div>
                    <div class="fontclass">#E-icon-ding</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-ge"></use>
                    </svg>
                    <div class="name">革</div>
                    <div class="fontclass">#E-icon-ge</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-gen1"></use>
                    </svg>
                    <div class="name">艮</div>
                    <div class="fontclass">#E-icon-gen1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-gou"></use>
                    </svg>
                    <div class="name">姤</div>
                    <div class="fontclass">#E-icon-gou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-gu"></use>
                    </svg>
                    <div class="name">蛊</div>
                    <div class="fontclass">#E-icon-gu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-guan"></use>
                    </svg>
                    <div class="name">观</div>
                    <div class="fontclass">#E-icon-guan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-guimei"></use>
                    </svg>
                    <div class="name">归妹</div>
                    <div class="fontclass">#E-icon-guimei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-jiji"></use>
                    </svg>
                    <div class="name">既济</div>
                    <div class="fontclass">#E-icon-jiji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-huan"></use>
                    </svg>
                    <div class="name">涣</div>
                    <div class="fontclass">#E-icon-huan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-jian"></use>
                    </svg>
                    <div class="name">蹇</div>
                    <div class="fontclass">#E-icon-jian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-jiaren"></use>
                    </svg>
                    <div class="name">家人</div>
                    <div class="fontclass">#E-icon-jiaren</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-jian1"></use>
                    </svg>
                    <div class="name">渐</div>
                    <div class="fontclass">#E-icon-jian1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-jie"></use>
                    </svg>
                    <div class="name">解</div>
                    <div class="fontclass">#E-icon-jie</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-jie1"></use>
                    </svg>
                    <div class="name">节</div>
                    <div class="fontclass">#E-icon-jie1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-jin"></use>
                    </svg>
                    <div class="name">晋</div>
                    <div class="fontclass">#E-icon-jin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-jing"></use>
                    </svg>
                    <div class="name">井</div>
                    <div class="fontclass">#E-icon-jing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-kan1"></use>
                    </svg>
                    <div class="name">坎</div>
                    <div class="fontclass">#E-icon-kan1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-guai"></use>
                    </svg>
                    <div class="name">夬</div>
                    <div class="fontclass">#E-icon-guai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-kun1"></use>
                    </svg>
                    <div class="name">坤</div>
                    <div class="fontclass">#E-icon-kun1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-kui"></use>
                    </svg>
                    <div class="name">睽</div>
                    <div class="fontclass">#E-icon-kui</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-kun2"></use>
                    </svg>
                    <div class="name">困</div>
                    <div class="fontclass">#E-icon-kun2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-li1"></use>
                    </svg>
                    <div class="name">离</div>
                    <div class="fontclass">#E-icon-li1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-lin"></use>
                    </svg>
                    <div class="name">临</div>
                    <div class="fontclass">#E-icon-lin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-lv"></use>
                    </svg>
                    <div class="name">履</div>
                    <div class="fontclass">#E-icon-lv</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-meng"></use>
                    </svg>
                    <div class="name">蒙</div>
                    <div class="fontclass">#E-icon-meng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-mingyi"></use>
                    </svg>
                    <div class="name">明夷</div>
                    <div class="fontclass">#E-icon-mingyi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-pi"></use>
                    </svg>
                    <div class="name">丕</div>
                    <div class="fontclass">#E-icon-pi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-lv1"></use>
                    </svg>
                    <div class="name">旅</div>
                    <div class="fontclass">#E-icon-lv1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-qian1"></use>
                    </svg>
                    <div class="name">谦</div>
                    <div class="fontclass">#E-icon-qian1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-qian2"></use>
                    </svg>
                    <div class="name">乾</div>
                    <div class="fontclass">#E-icon-qian2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-sheng"></use>
                    </svg>
                    <div class="name">升</div>
                    <div class="fontclass">#E-icon-sheng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-shi"></use>
                    </svg>
                    <div class="name">师</div>
                    <div class="fontclass">#E-icon-shi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-song"></use>
                    </svg>
                    <div class="name">讼</div>
                    <div class="fontclass">#E-icon-song</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-sui"></use>
                    </svg>
                    <div class="name">随</div>
                    <div class="fontclass">#E-icon-sui</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-shike"></use>
                    </svg>
                    <div class="name">噬嗑</div>
                    <div class="fontclass">#E-icon-shike</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-sun"></use>
                    </svg>
                    <div class="name">损</div>
                    <div class="fontclass">#E-icon-sun</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-tai"></use>
                    </svg>
                    <div class="name">泰</div>
                    <div class="fontclass">#E-icon-tai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-tongren"></use>
                    </svg>
                    <div class="name">同人</div>
                    <div class="fontclass">#E-icon-tongren</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-tun"></use>
                    </svg>
                    <div class="name">屯</div>
                    <div class="fontclass">#E-icon-tun</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-weiji"></use>
                    </svg>
                    <div class="name">未济</div>
                    <div class="fontclass">#E-icon-weiji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-wuwang"></use>
                    </svg>
                    <div class="name">无妄</div>
                    <div class="fontclass">#E-icon-wuwang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-xian"></use>
                    </svg>
                    <div class="name">咸</div>
                    <div class="fontclass">#E-icon-xian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-xiaoxu"></use>
                    </svg>
                    <div class="name">小畜</div>
                    <div class="fontclass">#E-icon-xiaoxu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-xiaoguo"></use>
                    </svg>
                    <div class="name">小过</div>
                    <div class="fontclass">#E-icon-xiaoguo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-xu"></use>
                    </svg>
                    <div class="name">需</div>
                    <div class="fontclass">#E-icon-xu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-yi"></use>
                    </svg>
                    <div class="name">颐</div>
                    <div class="fontclass">#E-icon-yi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-yi1"></use>
                    </svg>
                    <div class="name">益</div>
                    <div class="fontclass">#E-icon-yi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-xun1"></use>
                    </svg>
                    <div class="name">巽</div>
                    <div class="fontclass">#E-icon-xun1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-yu"></use>
                    </svg>
                    <div class="name">豫</div>
                    <div class="fontclass">#E-icon-yu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-ze"></use>
                    </svg>
                    <div class="name">泽</div>
                    <div class="fontclass">#E-icon-ze</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-zhongfu"></use>
                    </svg>
                    <div class="name">中孚</div>
                    <div class="fontclass">#E-icon-zhongfu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-zhen1"></use>
                    </svg>
                    <div class="name">震</div>
                    <div class="fontclass">#E-icon-zhen1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-heng"></use>
                    </svg>
                    <div class="name">恒</div>
                    <div class="fontclass">#E-icon-heng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-yansetianchongkaobei"></use>
                    </svg>
                    <div class="name">颜色填充 1 拷贝</div>
                    <div class="fontclass">#E-icon-yansetianchongkaobei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#E-icon-yansetianchong"></use>
                    </svg>
                    <div class="name">颜色填充 1</div>
                    <div class="fontclass">#E-icon-yansetianchong</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#E-icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
